package jdk8Demo;

import java.util.Arrays;

public class ListDemo {
	public static void main(String[] args) {
		String separator = ",";
		Arrays.asList("a", "b", "c", "d").forEach((String e)->System.out.print(e+separator));
		Arrays.asList( "a", "b", "d" ).sort( ( e1, e2 ) -> e1.compareTo( e2 ) );
	}
}
